package com.zg.ktcomwan.vm

import androidx.paging.PagingSource
import com.zg.ktcomwan.datasource.SquareDataSource
import com.zg.ktcomwan.model.ArticleBean
import com.zg.ktcomwan.repository.SquareRepositroty

/***
 * @Author:      zxd
 * @CreateDate:  2021/8/16 14:30
 * @Description:
 */
class ArticleVModel : AbsViewModel<ArticleBean>() {
    override fun getPagingSource(): PagingSource<Int, ArticleBean> {
        return SquareDataSource(SquareRepositroty())
    }
}